<?php
if($vid){
include 'cxurl.php';
$url = $cxlink."?vodids=".$_GET['vid'];
$data=json_decode(file_get_contents($url),true); 
$timu=$data['data'][0]['vod_name'];
}
elseif($vod){//资源站
$result = mysql_query("select * from aikcms_video  where id='$vod';");
if ($row = mysql_fetch_array($result)){
		$timu = $row['aik_video_name'];
		$bofang = $row['aik_video_url'];
		$jiexi = $row['aik_video_jiexi']<>'' ? $row['aik_video_jiexi']:'';
		$aik_video_seo = $row['aik_video_seo'];
		$aik_video_int = $row['aik_video_int'];
		$video_usergroupid = get_video_usergroup($row['aik_video_group'])== '0' ? $row['aik_video_usergroup']:get_video_usergroup($row['aik_video_group']);
		$array_video_usergroup = explode(",", $video_usergroupid); 	
		$aik_video_id = $row['id'];
		$arr = explode("\n",$bofang);
		$arry = explode("\n",$bofang);
	   }	
}
if (strstr($aik_tort,$timu)){header('location:index.php?mode=404');}
?>